package com.ruoyi.common.api.procuredOrders;


import com.ruoyi.common.core.domain.ProcuredOrders;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProcuredOrdersStatusAPi{
    void setProcuredOrderStatus(Long procuredOrderId);

	/**
	 * 根据id查询对应的采购订单信息
	 * @param procuredOrderId
	 * @return
	 */
	ProcuredOrders selectById(String procuredOrderId);

	/**
	 * 根据采购计划查询出所有相关联的采购订单
	 *
	 * @param planId
	 * @return
	 */
	List<Long> selectList(Long planId);

	/**
	 * 更新采购订单状态
	 * @param procuredOrderId
	 */
	int updateStatus(@Param("ordersId") String procuredOrderId);

	/**
	 * 更新样式
	 * @param procuredOrderId
	 * @return
	 */
	int updateCancelStyleClass(String procuredOrderId);
}
